package org.file_service.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.file_service.entity.User;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {
    User login(@Param("name") String name, @Param("password") String password);

    User idIsLegal(@Param("name") String name);

    int enroll(@Param("name") String name, @Param("password") String password);
}
